<?
namespace Core;
class ClassLoader {
	private $MainPath;
	function __construct() {
		$this->MainPath = dirname(dirname(__DIR__)).'/';
		spl_autoload_register(array($this, 'load'));
	}
	
	function load($className) {
		//echo 'Loading: '.$className.'<br>';
		$className = $this->MainPath.str_replace('\\', '/', $className) . '.class.php';
		require($className);
		//echo 'Loaded: '.$className.'<br>';
		return true;
	}
}
?>